package com.miyake.loveviewweb.client.main;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.client.ui.VerticalPanel;

public class Toolbar extends Composite implements HasText {

    private static ToolbarUiBinder uiBinder = GWT.create(ToolbarUiBinder.class);
    @UiField VerticalPanel subData;

    interface ToolbarUiBinder extends UiBinder<Widget, Toolbar> {
    }

    private UiDataHandler handler;

    public Toolbar(UiDataHandler handler) {
        this.setHandler(handler);
        initWidget(uiBinder.createAndBindUi(this));
    }

    public Toolbar(String firstName) {
        initWidget(uiBinder.createAndBindUi(this));
    }

    public void setText(String text) {
    }

    public String getText() {
        return "";
    }

    /**
     * @return the handler
     */
    public UiDataHandler getHandler() {
        return handler;
    }

    /**
     * @param handler the handler to set
     */
    public void setHandler(UiDataHandler handler) {
        this.handler = handler;
    }
}
